using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Script.Services;
using System.Web.Script.Serialization;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using A2UControl;
using SiteECSWeb;

public partial class ContactUs : PageBase
{
    #region ResetAdapter
    protected override void OnPreInit(EventArgs e)
    {
        HttpContext.Current.Request.Browser.
            Adapters["System.Web.UI.WebControls.GridView, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"]
            = "SiteECSWeb.GridViewAdapterReset";
        base.OnPreInit(e);
    }
    protected override void OnUnload(EventArgs e)
    {
        base.OnUnload(e);
        HttpContext.Current.Request.Browser.
           Adapters["System.Web.UI.WebControls.GridView, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"]
           = "CSSFriendly.GridViewAdapter";
    }
    #endregion

    protected void Page_Load(object sender, EventArgs e)
    {
        this.SiteMapNodeProvider 
            = SiteMapProviderNames.BottomSubMXmlSiteMapProvider.ToString();
    }
   
    protected void FormView1_DataBound(object sender, EventArgs e)
    {

        EcsSiteDS.EcsOfficRow officerow = (EcsSiteDS.EcsOfficRow)
                ((System.Data.DataRowView)FormView1.DataItem).Row;

        ifGoogleMap.Attributes["src"] = StringUtility.ApplictionPathAbstract(Request)
             + "Offices/OfficeIframeMap.aspx?long="
             + ((!officerow.IsOffice_longmapNull()) ? officerow.Office_longmap : 0.0)
             + "&lat="
             + ((!officerow.IsOffice_latmapNull()) ? officerow.Office_latmap : 0.0)
             + "&offnm=" + officerow.CityNameAr
             + "&add=" + officerow.Office_addrs
             + "&wrkhors=" + ((!officerow.IsOffice_WrkingHoursNull()) ? officerow.Office_WrkingHours : string.Empty)
             + "&wrkdys=" + ((!officerow.IsOffice_WrkDayOffNull()) ? officerow.Office_WrkDayOff : string.Empty);    
    }
}
